﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace INotifyPropertyChangedProject
{
    public class MainViewModel : ObservableObject
    {
        private Person person;
        public Person Person
        {
            get { return person; }
            set { person = value; RaisePropertyChanged("person"); }
        }
        public MainViewModel()
        {
            person = new Person()
            {
                Name = "小明",
                Age = 33,
                Address = "安徽省合肥市蜀山区玉兰大道",
            };
        }
    }
}
